using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ProgramMain.Framework;

namespace ProgramMain.PhoneTariffPlans
{
    public partial class PhoneTariffEditorCtl : BaseDetailCtl
    {
        public PhoneTariffEditorCtl()
        {
            InitializeComponent();
        }

        public Nullable<Int64> ServiceGroup_ID
        {
            get
            {
                return phoneOutgoingTariffDirEditorCtl.ServiceGroup_ID;
            }
            set
            {
                phoneOutgoingTariffDirEditorCtl.ServiceGroup_ID = value;
                phoneIncomingTariffDirEditorCtl.ServiceGroup_ID = value;
            }
        }

        private void PhoneTariffEditorCtl_DetailIDChanged(object sender, EventArgs e)
        {
            phoneOutgoingTariffDirEditorCtl.DetailID = this.DetailID;
            phoneIncomingTariffDirEditorCtl.DetailID = this.DetailID;
        }

        public void RefreshControl()
        {
            phoneOutgoingTariffDirEditorCtl.RefreshControl();
            phoneIncomingTariffDirEditorCtl.RefreshControl();
        }
    }
}
